package com.huonan.jb.tools.esuse.export.strategy;

import java.util.List;

/**
 * @Description TODO
 * @Author lxp
 * @Date 2023/2/7 上午11:37
 * @Version V1.0
 **/
public class ExportSlayer {

    private ExportFileStrategy strategy;

    public ExportSlayer() {
    }

    public void changeStrategy(ExportFileStrategy strategy) {
        this.strategy = strategy;
    }

    public void goToExport(List<String> sb, String filePath) {
        strategy.exportToFile(sb, filePath);
    }
}